console.log('res1')

setTimeout(()=>{
    console.log('res2')
},0)

new Promise(((resolve, reject) => {
    console.log('res3')


    setTimeout(()=>{
        console.log('res4')
        resolve()
    },0)
})).then(()=>{
    console.log('res5')
})


console.log('res6')

/**
 * 输出顺序:
 *        res1
 *        res3
 *        res6
 *        res2
 *        res4
 *        res5
 */



